package com.xzy.custom;

import lombok.Data;

/**
 * TODO70
 *
 * @author Administrator
 * ClassName: ResultMap
 * date: 2021/12/6 10:23
 */

@Data
public class ResultMap<T> {
    private String msg;
    private  T data;
    private  int code;
    private  int count;

    public ResultMap(String msg, T data, int code, int count) {
        this.msg = msg;
        this.data = data;
        this.code = code;
        this.count = count;
    }
    public ResultMap(int code) {
        this.code = code;
    }
    public ResultMap(int code,String msg) {
        this.msg = msg;
        this.code = code;
    }

}
